How to ignore if a value is not present inside a list using python

join shbcf.ru